/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace DaveSexton.DocProject
{
	/// <summary>
	/// Provides arguments for the <see cref="DataGridViewFileCell.InitializeFolderDialog"/> event.
	/// </summary>
	public class DataGridViewFileColumnFolderDialogEventArgs : EventArgs
	{
		#region Public Properties
		public FolderBrowserDialog Dialog
		{
			get
			{
				return dialog;
			}
		}

		public int ColumnIndex
		{
			get
			{
				return columnIndex;
			}
		}
		#endregion

		#region Private / Protected
		private readonly FolderBrowserDialog dialog;
		private readonly int columnIndex;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="DataGridViewFileColumnFolderDialogEventArgs" /> class.
		/// </summary>
		public DataGridViewFileColumnFolderDialogEventArgs(int columnIndex, FolderBrowserDialog dialog)
		{
			if (dialog == null)
				throw new ArgumentNullException("dialog");

			this.columnIndex = columnIndex;
			this.dialog = dialog;
		}
		#endregion
	}
}
